import Request from '../common/request.js';
let request = new Request().http
export default {
    //我的团队
    getPartJobList: function(data) {
        return request('/app/user/getPartJobList', data, 'GET');
    },
    getJobUserList:function(data) {
        return request('/app/user/getJobUserList',data, 'get')
    },
    getPartJob: function(data) {
        return request('/app/user/getPartJob', data, 'GET');
    },
    //未读消息数
    getResMsgCount: function(data) {
        return request('/app/msg/getResMsgCount', data, 'GET');
    },
    ///app/user/setProUrl?proUrl=bushiurl
    //上传兼职码
    setProUrl: function(data) {
        return request('/app/user/setProUrl', data, 'GET');
    },
    //上传获客码
    setAcqUrl: function(data) {
        return request('/app/user/setAcqUrl', data, 'GET');
    },
    //设置未促成 /app/customer/cirRecover
    cirRecover: function(data) {
        return request('/app/customer/cirRecover', data, 'GET');
    },
    feeCover: function(data) {
        return request('/app/customer/feeCover', data, 'GET');
    },
    //设置流转中
    reCir: function(data) {
        return request('/app/customer/reCir', data, 'GET');
    },
    //获取预约客户 /app/customerOut/myOutCustomer
    myOutCustomer: function(data) {
        return request('/app/customerOut/myOutCustomer', data, 'GET');
    },
    //分配预约  app/customerOut/changeOutUser
    changeOutUser: function(data) {
        return request('/app/customerOut/changeOutUser', data, 'GET');
    },
    loginWx: function(data) {
        return request('/app/wx/login', data, 'GET');
    },
    loginByPwd: function(data) {
        return request('/app/user/loginByPwd', data, 'POST');
    },
    getUserInfo: function(data) {
        return request('/app/user/getUserInfo', data, 'GET');
    },
    getAllUsers: function(data) {
        return request('/app/user/getAllUsers', data, 'GET');
    },
    getUserInfoByUserId: function(data) {
        return request('/app/user/getUserInfoByUserId', data, 'GET');
    },
    setPwd: function(data) {
        return request('/app/user/setPwd', data, 'POST');
    },
    setUserInfo: function(data) {
        return request('/app/user/setUserInfo', data, 'POST');
    },
    getDeptUsers: function(data) { //获取部门员工
        return request('/app/user/getDeptUsers', data, 'GET');
    },
    getSalesUsers: function(data) { //获取业务员列表
        return request('/app/user/getSalesUsers', data, 'GET');
    },
    getUsers: function(data) { //获取所有员工
        return request('/app/user/getUserList', data, 'GET');
    },
    toExecutor: function(data) { //分配执行
        return request('/app/customer/toExecutor', data, 'GET');
    },
    toPostPerson: function(data) { //分配贷后
        return request('/app/customer/toPostPerson', data, 'GET');
    },
    toSalePerson: function(data) { //分配业务
        return request('/app/customer/toSalePerson', data, 'GET');
    },
    getFullCustomerList: function(data) {
        return request('/app/customer/getFullCustomerList', data, 'GET');
    },
    getDicts: function() {
        return request('/app/common/getDicts', null, 'GET');
    },
    getCustomerDetails: function(data) { //获取用户信息
        return request('/app/customer/getCustomerDetails', data, 'GET');
    },

    getCustomerContactsList: function(data) {
        return request('/app/customer/getCustomerContactsList', data, 'GET');
    },
    getCustomerVisitList: function(data) {
        return request('/app/customer/getCustomerVisitList', data, 'GET');
    },
    getMyCustomerList: function(data) {
        return request(`/app/customer/getMyCustomerList`, data, 'GET');
    },
    getMyCustomerList2: function(data) {
        return request(`/app/customer/getPoolCustomerList`, data, 'GET');
    },
    getProductList: function(data) {
        return request('/app/product/getProductList', data, 'GET');
    },
    getProductDetails: function(data) {
        return request('/app/product/getProductDetails', data, 'GET');
    },
    getContractDetails: function(data) {
        return request('/app/contract/getContractDetails', data, 'GET');
    },
    getContractVisitList: function(data) {
        return request('/app/contract/getContractVisitList', data, 'GET');
    },
    receive: function(data) {
        return request('/app/customer/receive', data, 'POST');
    },
    auditCustomer: function(data) {
        return request('/app/customer/auditCustomer', data, 'POST', 'application/json;charset=UTF-8');
    },
    addVideo: function(data) {
        return request('/app/video/add', data, 'POST', 'application/json;charset=UTF-8');
    },
    delVideo: function(data) {
        return request('/app/video/remove', data, 'POST', 'application/json;charset=UTF-8');
    },
    getVideo: function(data) {
        return request('/app/video/list', data, 'GET');
    },
    addCustomerByCus: function(data) {
        return request('/app/customer/addCustomerByCus', data, 'POST', 'application/json;charset=UTF-8');
    },
    insertUser: function(data) {
        return request('/app/user/insertUser', data, 'POST', 'application/json;charset=UTF-8');
    },
    addCustomerVisit: function(data) {
        return request('/app/customer/addCustomerVisit', data, 'POST', 'application/json;charset=UTF-8');
    },
    addCustomer: function(data) {
        return request(`/app/customer/addCustomer`, data, 'POST', 'application/json;charset=UTF-8')
    },
    approval: function(data) { //审核客户addApproval
        return request(`/app/customer/approval`, data, 'POST', 'application/json;charset=UTF-8')
    },
    impEdit: function(data) { //执行失败
        return request(`/app/imp/edit`, data, 'POST', 'application/json;charset=UTF-8')
    },
	addImpList: function(data) { //执行失败
	    return request(`/app/imp/infoEdit`, data, 'POST', 'application/json;charset=UTF-8')
	},
    isContract: function(data) { //审核客户
        return request(`/app/contract/isContract`, data, 'GET', 'application/json;charset=UTF-8')
    },

    invitation: function(data) { //邀约状态
        return request(`/app/customer/invitation`, data, 'GET', 'application/json;charset=UTF-8')
    },
    invedit: function(data) { //不传征信
        return request(`/app/inv/edit`, data, 'POST', 'application/json;charset=UTF-8')
    },
    isCreInv: function(data) { //确认征信
        return request(`/app/inv/isCreInv`, data, 'GET', 'application/json;charset=UTF-8')
    },
    removeInv: function(data, ids) { //删除征信
        return request(`/app/invDoc/remove`, data, 'POST', 'application/json;charset=UTF-8') //'multipart/form-data'
    },


    removeCon: function(data, ids) { //删除合同
        return request(`/app/contractDoc/remove`, data, 'POST',
            'application/json;charset=UTF-8') //'multipart/form-data'
    },


    getOneInv: function(data) { //获取征信状态
        return request(`/app/inv/getOneInv`, data, 'GET', 'application/json;charset=UTF-8')
    },

    getOneImp: function(data) { //获取执行信息
        return request(`/app/imp/getOneImp`, data, 'GET', 'application/json;charset=UTF-8')
    },

    invDocAdd: function(data) { //上传征信
        return request(`/app/invDoc/add`, data, 'POST', 'application/json;charset=UTF-8')
    },
    cusDocAdd: function(data) { //上传征信
        return request(`/app/contractDoc/add`, data, 'POST', 'application/json;charset=UTF-8')
    },

    getInvList: function(data) { //获取征信
        return request(`/app/invDoc/list`, data, 'GET', 'application/json;charset=UTF-8')
    },
    getOneContract: function(data) { //获取合同状态
        return request(`/app/contract/getOneContract`, data, 'GET', 'application/json;charset=UTF-8')
    },
    getContractList: function(data) { //获取合同状态
        return request(`/app/contractDoc/list`, data, 'GET', 'application/json;charset=UTF-8')
    },
    editCustomer: function(data) {
        return request(`/app/customer/editCustomer`, data, 'POST', 'application/json;charset=UTF-8')
    },
    addContact: function(data) {
        return request('/app/customerContact/addContact', data, 'POST', 'application/json;charset=UTF-8');
    },
    getMyDoCustomerList: function(data) {
        return request('/app/customer/getMyDoCustomerList', data, 'GET');
    },
    addContract: function(data) {
        return request('/app/contract/addContract', data, 'POST', 'application/json;charset=UTF-8');
    },
    auditContract: function(data) {
        return request('/app/contract/auditContract', data, 'POST', 'application/json;charset=UTF-8');
    },
    getMyCustomerVisitList: function(data) {
        return request('/app/customer/getMyCustomerVisitList', data, 'GET');
    },

    getNearCustomerList: function(data) {
        return request('/app/customer/getNearCustomerList', data, 'GET');
    },
    getAchievement: function(data) {
        return request('/app/achievement/getAchievement', data, 'GET');
    },
    getMsg: function(data) {
        return request('/app/msg/getMsg', data, 'GET');
    },
    getMsgList: function(data) {
        return request('/app/msg/getMsgList', data, 'GET');
    },
    setRead: function(data) {
        return request('/app/msg/setRead', data, 'POST', 'application/json;charset=UTF-8');
    },
    getAuditContractList: function(data) {
        return request('/app/contract/getAuditContractList', data, 'GET');
    },
    getAuditCustomerList: function(data) {
        return request('/app/customer/getAuditCustomerList', data, 'GET');
    },
    getReceivablesList: function(data) {
        return request('/app/receivables/getReceivablesList', data, 'GET');
    },
    getReceivablesDetails: function(data) {
        return request('/app/receivables/getReceivablesDetails', data, 'GET');
    },
    auditReceivables: function(data) {
        return request('/app/receivables/auditReceivables', data, 'POST', 'application/json;charset=UTF-8');
    },
    addReceivables: function(data) {
        return request('/app/receivables/addReceivables', data, 'POST', 'application/json;charset=UTF-8');
    },
    getMySuccessContractList: function(data) {
        return request('/app/contract/getMySuccessContractList', data, 'GET');
    },
    getAuditReceivablesList: function(data) {
        return request('/app/receivables/getAuditReceivablesList', data, 'GET');
    },
    getConfig: function(data) {
        return request('/app/common/getConfig', data, 'GET');
    },
    recover: function(data) {
        return request('/app/customer/recover', data, 'POST', 'application/json;charset=UTF-8');
    },
    assign: function(data) {
        return request('/app/customer/assign', data, 'POST', 'application/json;charset=UTF-8');
    },
    getSelectUserList: function(data) {
        return request('/app/common/getSelectUserList', data, 'GET');
    },
    getContractMoney: function(data) {
        return request('/app/contract/getContractMoney', data, 'GET');
    },
    addMoney: function(data) {
        return request('/app/contract/addMoney', data, 'POST', 'application/json;charset=UTF-8');
    },
    getMsgCount: function(data) {
        return request('/app/msg/getMsgCount', data, 'GET');
    },
    getEvent: function(data) {
        return request('/app/msg/getEvent', data, 'GET');
    },
    getUserRoles: function(data) {
        return request('/app/user/getUserRoles', data, 'GET');
    },
    changeUserRoles: function(data) {
        return request('/app/user/changeUserRoles', data, 'GET');
    },
    rollBackAmount: function(data) { //回款成功
        return request('/app/customer/rollBackAmount', data, 'GET');
    },
	getDeptUsersByUser:function(data){
		return request('/app/user/getDeptUsersByUser',data,'GET');
	},
    removeCustomer:function (data){
        return request("/app/customer/removeCustomer",data,'POST','application/json;charset=UTF-8')
    },

    // /app/user/changeUserRoles?roleId=3

    ///app/user/getUserRoles


}